package com.tianjin.design.chainofresponsibility;


public class TwoLeaderHandler extends LeaderHandler{
    @Override
    public void handler(Request request) {
        if (request.getDay() >= 3 && request.getDay() < 10) {
            System.out.println("部门总监处理审批请求："+ request.toString());
        } else {
            // 当前级别处理不了，就将请求丢给上级去处理
            System.out.println("部门总监无法处理审批请求，往上提报");
            leaderHandler.handler(request);
        }
    }
}
